package com.canyou.oss;

import com.canyou.enums.MediaAccessTypeEnum;
import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 阿里云oss文件上传配置属性
 *
 * @author fy
 * @date 20/05/13 14:15
 */
@Data
@Configuration
@ConditionalOnProperty(prefix = "oss.ali", name = "access-key-id")
@ConfigurationProperties(prefix = "oss.ali")
public class AliOssProperties {

    private String accessKeyId;

    private String accessKeySecret;

    private String endpoint;

    private String bucket;

    private String basePath;

    private String callbackUrl;

    private Long expiration;

    private MediaAccessTypeEnum accessType;

}
